<table cellpadding="3" cellspacing="1" class="table table-bordered table-hover" id="list-table">

    <thead>
    <tr>
        <th>专题名称</th>
        <th>专题图片</th>
        <th>主讲人</th>
        <th>会员专享</th>
        <th>是否可见</th>
        <th>操作</th>
    </tr>
    </thead>

    <#if (voiceOnDemondList?size>0)>
    <#list  voiceOnDemondList as voiceOnDemond>

    <tbody>
    <tr>
        <td align="center" valign="top" nowrap="nowrap">
            <#if (voiceOnDemond.dataName)??>
                    ${voiceOnDemond.dataName}
            </#if>
        </td>
        <td align="center" valign="top" nowrap="nowrap">
            <#if (voiceOnDemond.imgUrl)??>
                <#if (voiceOnDemond.imgUrl)?starts_with("http") >
                    <img src= ${voiceOnDemond.imgUrl} class="voice_img"/>
                <#else >
                    <img src= "http://res.shouerhealth.cn/${voiceOnDemond.imgUrl}" class="voice_img" style="width: 250px"/>
                </#if>

            </#if>
        </td>
        <td align="center" valign="top" nowrap="nowrap">
            <#if (voiceOnDemond.stuffName)??>
                    ${voiceOnDemond.stuffName}
            </#if>
        </td>
        <td align="center" valign="top" nowrap="nowrap">
            <#if (voiceOnDemond.freetype)??>
                <#if voiceOnDemond.freetype==1>
                    会员专享
                <#else>
                    普通专题
                </#if>
            <#else>
                未知
            </#if>
        </td>
        <td align="center" valign="top" nowrap="nowrap">
            <#if (voiceOnDemond.isIssueFlag)??>
                <#if (voiceOnDemond.isIssueFlag)==1>
                    可见
                <#else>
                    不可见
                </#if>
            <#else >
                不可见
            </#if>
        </td>
        <td align="center" valign="top" nowrap="nowrap">
            <a href="${basePath}/voice/ajaxQueryVoiceSubjectDetail.action?recid=${voiceOnDemond.recid}">编辑</a>|
            <a href="javascript:void()"
               onclick="showDeleteAlert(${voiceOnDemond.recid},'${voiceOnDemond.dataName}')">删除</a>|
            <a href="${basePath}/voice/getVoiceSubjectDataList.action?voiceOnDemondId=${voiceOnDemond.recid}">音频列表</a>
        </td>
    </tr>
    </tbody>
    </#list>
    </#if>

</table>


<script type="text/javascript">
    listTable.currentPage =${(page.currentPage)?c};
    listTable.pageCount =${(page.totalPage)?c};
    listTable.recordCount =${(page.allRow)?c};
</script>
<!--分页-->
<table id="page-table" cellspacing="0">
    <tr>
        <td align="right" nowrap="true">
            <div id="turn-page">
                共<span id="totalRecords">${page.allRow} </span>条记录&nbsp;
                共<span id="totalPages">${page.totalPage}</span> 页&nbsp;
                当前第<span id="pageCurrent">${page.currentPage}</span>页&nbsp;

                每页显示记录条数 <input type='text' size='3' id='pageSize' value="${page.pageSize}"
                                onkeypress="return listTable.changePageSize(event)"/>
                <!--查询动作-->
                <input type='hidden' size='3' id='action' value="ajaxQueryStuff.action"/>


                <span id="page-link">
                    <a href="javascript:listTable.gotoPageFirst()">第一页</a>
                    <a href="javascript:listTable.gotoPagePrev()">前一页</a>
                    <a href="javascript:listTable.gotoPageNext()">下一页</a>
                    <a href="javascript:listTable.gotoPageLast()">最后一页</a>

                </span>
            </div>
        </td>

    </tr>
</table>